# Contributor: Leon Marz <main@lmarz.org>
# Maintainer: Leon Marz <main@lmarz.org>
pkgname=robin-map
pkgver=1.2.1
pkgrel=0
pkgdesc="C++ implementation of a fast hash map"
url="https://github.com/Tessil/robin-map"
arch="noarch"
license="MIT"
makedepends="cmake"
source="$pkgname-$pkgver.tar.gz::https://github.com/Tessil/robin-map/archive/v$pkgver.tar.gz"
options="!check" # no testsuite provided

build() {
	cmake -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_DATADIR=lib \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
9e08c6b5b06d26e18d85b36c79ec855bc3220843bc358f53f3eb269bd8d20350871a9686ad77b2b462ca104e4cc62a0745a71d62bd1f69c8f50d29788eac63e1  robin-map-1.2.1.tar.gz
"
